package com.example.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Author:yanghua
 * Date:2023/10/6 22:12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Profession { // 专业
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id; // id是自动增加的
    private String profession; // 专业名称
    private Integer del; // 是否删除
}
